package com.aaa.limits.util;

import com.aaa.common.util.Result;
import com.auth0.jwt.interfaces.Claim;
import lombok.extern.log4j.Log4j2;

import java.util.Map;


@Log4j2
public class queryButton{
    public  static  Map<String, Claim>  queryButtonPermByToken(String token){
        String tokenSub = token.substring(token.indexOf("-") + 1);
        Map<String, Claim> payloadByToken = JwtUtils.getPayloadByToken(tokenSub);

        return payloadByToken;
    }
}
